package config

import (
	baseAuth "gitee.com/zaiqiang231/go-base-app/base_app/auth"
	baseConfig "gitee.com/zaiqiang231/go-base-app/base_app/config"
	"time"
)

var (
	GlobalAppConfig = new(AppConfig)
	ServiceName     = "base-session-service"
)

var (
	GlobalJwtAuth   *baseAuth.JWTAuth
	AuthIdentityKey = "username"
)

type AppConfig struct {
	baseConfig.AppConfig `mapstructure:",squash"` //结构体的字段提到父结构中
	SessionConfig        *SessionConfig           `mapstructure:"session"`
}

type SessionConfig struct {
	Timeout time.Duration `mapstructure:"timeout"`
}
